import request from '@/utils/request'

const auth = {
  login: (params) => request({ url: '/?method=auth.login', method: 'post', params: params }),
  logout: (params) => request({ url: '/?method=auth.logout', method: 'post', params: params }),
  getInfo: (params) => request({ url: '/?method=auth.getInfo', method: 'get', params: params }),
  getPicCaptchaConfig: (params) => request({ url: '/?method=auth.getPicCaptchaConfig', method: 'get', params: params })
}

export default auth
